// 接口返回
export interface ResponseType<T = any> {
  code: number;
  msg: string;
  type: "success" | "error";
  result: T;
}
// 接口返回分页类型
export interface pageResponseType<T = any>
    extends ResponseType<{
      total: number;
      pageNum: number;
      pageSize: number;
      data: T;
    }> {}
//  覆盖类型
export type Overwrite<T, U> = Pick<T, Exclude<keyof T, keyof U>> & U;